const controller = getAjaxBaseUrl('/sysinteg')

export async function getHumanResourceInfo() {
  return get(`${controller}/largeScreen/user`)
}

export async function getErpBasicInfo() {
  return get(`${controller}/largeScreen/erpBasic`)
}

export async function getErpAnalysisInfo() {
  return get(`${controller}/largeScreen/erpAnalysis`)
}

export async function getErpRankInfo() {
  return get(`${controller}/largeScreen/erpRank`)
}

export async function getErpCustomerInfo() {
  return get(`${controller}/largeScreen/erpCustomer`)
}

export async function getHrNewsInfo(n: number = 10) {
  return post(`${controller}/news/page`, { pageNumber: 1, pageSize: n })
}

export async function getWeatherInfo() {
  return get(`${controller}/largeScreen/weather`)
}
